using System.Drawing;

namespace MPSizectorDotNet
{
	public class MP2DFrameManaged
	{
		public uint SensorWidth;

		public uint SensorHeight;

		public uint SensorResolution;

		public float XMax;

		public float YMax;

		public float ZMax;

		public byte[] Data;

		public MP2DFrameManaged(uint ImgWidth, uint ImgHeight)
		{
			this.SensorWidth = ImgWidth;
			this.SensorHeight = ImgHeight;
			this.Data = new byte[ImgWidth * ImgHeight];
		}

		public Bitmap GetBitmap()
		{
			return Utils.ConvertGrayByteArrayToGrayBitmap(this.Data, this.SensorWidth, this.SensorHeight);
		}
	}
}
